{% extends 'Sales_base.html' %}
{% block title %}
    现代化农业平台
{% endblock %}
{% block head %}

    <style>
        /* 基础样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Arial, sans-serif;
        }

        /* 导航栏 */
        .nav-links a {
            text-decoration: none;
            color: #333;
            transition: color 0.3s;
        }

        /* 主页横幅 */
        .hero {
            height: 80vh;
            background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                        url('https://via.placeholder.com/1920x1080') center/cover;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: white;
            margin-top: 60px;
        }

        /* 服务卡片 */
        .services {
            padding: 4rem 5%;
            background: #f9f9f9;
        }

        .service-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .service-card {
            background: white;
            padding: 2rem;
            border-radius: 10px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
            text-align: center;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }
            
            .mobile-menu-btn {
                display: block;
            }
        }
    </style>
{% endblock %}
{% block main %}
    <!-- 主页横幅 -->
    <section class="hero">
        <div class="hero-content">
            <h1>现代化农业服务平台</h1>
            <p>为您提供专业的农业技术支持和市场解决方案</p>
            <button>立即咨询</button>
        </div>
    </section>

    <!-- 服务项目 -->
    <section class="services">
        <h2>我们的服务</h2>
        <div class="service-grid">
            <div class="service-card">
                <h3>种植指导</h3>
                <p>专业农技人员提供全程种植指导</p>
            </div>
            <div class="service-card">
                <h3>市场动态</h3>
                <p>实时农产品市场价格分析与预测</p>
            </div>
            <div class="service-card">
                <h3>农业技术</h3>
                <p>最新农业科技与设备推荐</p>
            </div>
        </div>
    </section>

{% endblock %}
